﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Core;
namespace Crosland.Automotriz.Data.Dao.Linq
{
    public class clsRecuperarCorreoDAO
    {

        public List<RecuperarEmail> TraerEmail(string idusuario)
        {
            using (AutomotrizEntities bd = new AutomotrizEntities())
            {
                var q = from u in bd.V_Usuario
                        where u.ID_USUARIO == idusuario
                        select new RecuperarEmail
                        {
                            Dsc_Email = u.DES_EMAIL,
                            Nombre_user=u.ID_USUARIO
                        };
                return q.ToList();
            }


        }


    }
}
